﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YX.Properties;

namespace YX
{
    class MyBoom:FatherBoom
    {
        public MyBoom(int x, int y):base(x,y)
        {
            this.X = x;
            this.Y = y;
        }
        private Image[] image ={
                                   Resources.hero_blowup_n1,
                                   Resources.hero_blowup_n2,
                                   Resources.hero_blowup_n3,
                                   Resources.hero_blowup_n2,
                                };
        public override void Draw(System.Drawing.Graphics g)
        {
            for(int i=0;i<image.Length;i++)
            {
                g.DrawImage(image[i],this.X,this.Y);
            }
            SingleClass.GetSingle.RemoveClass(this);
        }
    }
}
